package com.jiaai.cloud.user.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 佳爱网络科技
 * @since 2017-08-02
 */
@TableName("t_user_level")
public class TUserLevel extends Model<TUserLevel> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 用户Id
     */
	private String userId;
    /**
     * 当前所需要的经验
     */
	private Long currentExp;
    /**
     * 下一级所需的经验
     */
	private Long nexLvExp;
    /**
     * 当前等级
     */
	private Integer lv;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public Long getCurrentExp() {
		return currentExp;
	}

	public void setCurrentExp(Long currentExp) {
		this.currentExp = currentExp;
	}

	public Long getNexLvExp() {
		return nexLvExp;
	}

	public void setNexLvExp(Long nexLvExp) {
		this.nexLvExp = nexLvExp;
	}

	public Integer getLv() {
		return lv;
	}

	public void setLv(Integer lv) {
		this.lv = lv;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
